package service.impl;

import dao.UserOrderMapper;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import model.UserOrder;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import service.UserOrderService;

@Service
@SuppressWarnings("rawtypes")
public class UserOrderServiceImpl implements UserOrderService {

	@Autowired
	private UserOrderMapper userOrderMapper;

	public List<UserOrder> finduserOrderList(HashMap<String, Object> xmap) {
		return this.userOrderMapper.finduserOrderList(xmap);
	}

	public int updateOrderStatus(HashMap<String, Object> xmap) {
		return this.userOrderMapper.updateOrderStatus(xmap);
	}

	public List<UserOrder> finduserOrders(HashMap<String, Object> xmap) {
		return this.userOrderMapper.finduserOrders(xmap);
	}

	public List<UserOrder> finduserOrdersByOrderNo(String orderNo) {
		return this.userOrderMapper.finduserOrdersByOrderNo(orderNo);
	}

	public void updateByOrderNo(Map map) {
		this.userOrderMapper.updateByOrderNo(map);
	}

	public void add(Map map) {
		this.userOrderMapper.add(map);
	}
}